package com.jams.goodox.entity;


import com.jams.goodox.net.BaseEntity;

/**
 * Created by Jin on 2017/1/3.
 * Description
 */
public class MoneyPayResultInfo extends BaseEntity {
	/**
	 * data : {"myMoney":"string","passwordWrongCount":0,"passwordWrongMsg":"string","payStatus":0,"rechargeId":"string","rechargeNo":"string"}
	 * status : 0
	 */

	private DataBean data;

	public DataBean getData() {
		return data;
	}

	public void setData(DataBean data) {
		this.data = data;
	}

	public static class DataBean {
		/**
		 * myMoney : string
		 * passwordWrongCount : 0
		 * passwordWrongMsg : string
		 * payStatus : 0
		 * rechargeId : string
		 * rechargeNo : string
		 */

		private String myMoney;
		private int passwordWrongCount;
		private String passwordWrongMsg;
		private int payStatus;
		private String rechargeId;
		private String rechargeNo;

		public double getMyMoney() {
			try {
				return Double.parseDouble(myMoney);
			} catch (NumberFormatException e) {
				return 0.00;
			}
		}

		public void setMyMoney(String myMoney) {
			this.myMoney = myMoney;
		}

		public int getPasswordWrongCount() {
			return passwordWrongCount;
		}

		public void setPasswordWrongCount(int passwordWrongCount) {
			this.passwordWrongCount = passwordWrongCount;
		}

		public String getPasswordWrongMsg() {
			if(passwordWrongMsg == null){
				return "";
			}
			return passwordWrongMsg;
		}

		public void setPasswordWrongMsg(String passwordWrongMsg) {
			this.passwordWrongMsg = passwordWrongMsg;
		}

		public int getPayStatus() {
			return payStatus;
		}

		public void setPayStatus(int payStatus) {
			this.payStatus = payStatus;
		}

		public String getRechargeId() {
			return rechargeId;
		}

		public void setRechargeId(String rechargeId) {
			this.rechargeId = rechargeId;
		}

		public String getRechargeNo() {
			return rechargeNo;
		}

		public void setRechargeNo(String rechargeNo) {
			this.rechargeNo = rechargeNo;
		}
	}
}
